package mspbots.hubspot.client.core.contacts;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * mspbots.hubspot.client.core.contacts.ContactPropertiesBody
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/9/21
 */
@Data
@Validated
public class ContactPropertiesBody implements Serializable {

    @NotBlank
    private String name;

    @NotBlank
    private String label;

    @NotBlank
    private String type;

    @NotBlank
    private String fieldType;

    private String groupName;

    public ContactPropertiesBody() {
        this.groupName = "contactinformation";
    }

}
